package com.teaclipse.model;

import java.util.HashMap;
import java.util.Iterator;/**
 * <p>Title: </p>
 *
 * <p>Description: </p>
 *
 * <p>Copyright: Copyright (c) 2006</p>
 *
 * <p>Company: </p>
 *
 * @author not attributable
 * @version 1.0
 */
public class DeclarationSpace extends HashMap {
    public DeclarationSpace() {
        super();
    }


    public String toString()
    {
        String returnValue = "-------------------------------";
        Iterator it = this.keySet().iterator();

        while(it.hasNext())
        {
            String value = it.next().toString();

            if(value.indexOf(TeaQuadGeneratorConstants.TEMP_CONSTANT) == -1)
            {
                returnValue = returnValue + "\n"  + "| " + value +"\t\t\t"
                              + " | "
                              + this.get(value).toString()
                              + "\t"
                              +"|";
            }
        }

        return returnValue;
    }
}
